
kibana-tar-install:
    file.managed: #cp文件到minion端
        - name: /usr/local/src/kibana-7.2.0-x86_64.rpm
        - source: salt://files/kibana-7.2.0-x86_64.rpm
        - user: root
        - group: root
        - mode: 644

    cmd.run: #执行本地命令
        - name: rpm -ivh  /usr/local/src/kibana-7.2.0-x86_64.rpm
        - unless: rpm -q  kibana
        - require:
            - file: /usr/local/src/kibana-7.2.0-x86_64.rpm

kibana-config:
    file.managed:
        - name: /etc/kibana/kibana.yml
        - source: salt://files/kibana-template.yml
        - onlyif: rpm -q kibana
